package com.docker.chy.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.docker.common.annotation.Excel;
import com.docker.common.core.domain.BaseEntity;

/**
 * 患者信息对象 doctor_patient
 * 
 * @author ruoyi
 * @date 2025-04-09
 */
public class DoctorPatient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者卡号 */
    private Long id;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String name;

    /** 密码 */
    private String password;

    /** 性别（字典） */
    @Excel(name = "性别", readConverterExp = "字=典")
    private Long sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNumber;

    /** 患者来源（字典） */
    @Excel(name = "患者来源", readConverterExp = "字=典")
    private Long department;

    /** 会员类型（字典） */
    @Excel(name = "会员类型", readConverterExp = "字=典")
    private Long vipType;

    /** 到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date daedLine;

    /** 民族 */
    @Excel(name = "民族")
    private String nation;

    /** 婚姻状况（字典） */
    @Excel(name = "婚姻状况", readConverterExp = "字=典")
    private Long marriagestatus;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 学历（字典） */
    @Excel(name = "学历", readConverterExp = "字=典")
    private Long education;

    /** 职业（字典） */
    @Excel(name = "职业", readConverterExp = "字=典")
    private Long career;

    /** 工作单位 */
    @Excel(name = "工作单位")
    private String workUnit;

    /** 逻辑删除 */
    private Long del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }

    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }

    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setIdNumber(String idNumber) 
    {
        this.idNumber = idNumber;
    }

    public String getIdNumber() 
    {
        return idNumber;
    }

    public void setDepartment(Long department) 
    {
        this.department = department;
    }

    public Long getDepartment() 
    {
        return department;
    }

    public void setVipType(Long vipType) 
    {
        this.vipType = vipType;
    }

    public Long getVipType() 
    {
        return vipType;
    }

    public void setDaedLine(Date daedLine) 
    {
        this.daedLine = daedLine;
    }

    public Date getDaedLine() 
    {
        return daedLine;
    }

    public void setNation(String nation) 
    {
        this.nation = nation;
    }

    public String getNation() 
    {
        return nation;
    }

    public void setMarriagestatus(Long marriagestatus) 
    {
        this.marriagestatus = marriagestatus;
    }

    public Long getMarriagestatus() 
    {
        return marriagestatus;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setEducation(Long education) 
    {
        this.education = education;
    }

    public Long getEducation() 
    {
        return education;
    }

    public void setCareer(Long career) 
    {
        this.career = career;
    }

    public Long getCareer() 
    {
        return career;
    }

    public void setWorkUnit(String workUnit) 
    {
        this.workUnit = workUnit;
    }

    public String getWorkUnit() 
    {
        return workUnit;
    }

    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("password", getPassword())
            .append("sex", getSex())
            .append("age", getAge())
            .append("birthday", getBirthday())
            .append("phone", getPhone())
            .append("idNumber", getIdNumber())
            .append("department", getDepartment())
            .append("vipType", getVipType())
            .append("daedLine", getDaedLine())
            .append("nation", getNation())
            .append("marriagestatus", getMarriagestatus())
            .append("address", getAddress())
            .append("education", getEducation())
            .append("career", getCareer())
            .append("workUnit", getWorkUnit())
            .append("remark", getRemark())
            .append("del", getDel())
            .toString();
    }
}
